home *** CD-ROM | disk | FTP | other *** search
- dnl Process this file with autoconf to produce a configure script.
- AC_INIT(gs.c)
-
- # We want these before the checks, so the checks can modify their values.
- test -z "$CFLAGS" && CFLAGS= auto_cflags=1
- test -z "$LDFLAGS" && LDFLAGS=
-
- AC_PROG_CC
- AC_PROG_CPP
- AC_PROG_INSTALL
- AC_PROG_RANLIB
- AC_CHECK_PROG(AR, ar, ar, ar)
- AC_GCC_TRADITIONAL
-
- # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
- test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
-
- CFLAGS="$CFLAGS -fno-builtin"
- AC_SUBST(CFLAGS)dnl
- AC_SUBST(LDFLAGS)dnl
-
- AC_OUTPUT(devs.mak gcc-head.mak gs.mak int.mak jpeg.mak \
- lib.mak libpng.mak ugcclib.mak unix-end.mak unixhead.mak \
- unixtail.mak zlib.mak version.mak tar_cat)
-
- AC_OUTPUT_COMMANDS([sh tar_cat])
- AC_OUTPUT_COMMANDS([cp unix-gcc.mak makefile])
- AC_OUTPUT_COMMANDS([echo "DON'T edit the makefile but its sub files"])
-